package com.winshare.saleAssistant.domain.dto.req;

import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;

public class ProductModuleContentDTO {

    @NotNull(message = "栏目主键不可以为空")
    @Range(min = 1, max = 64, message = "栏目主键不能小于1")
    @ApiModelProperty(value = "栏目主键不可以为空")
    private Integer productModuleId;

    @NotNull(message = "产品主键不可以为空")
    @Range(min = 1, max = 64, message = "产品主键不能小于1")
    @ApiModelProperty(value = "产品主键不可以为空")
    private Integer productId;

    @ApiModelProperty(value = "内容,存储文件上传的url等")
    private String content;

    @ApiModelProperty(value = "存储上传的文件名字,以便于物料接口展示")
    private String fileName;

    @ApiModelProperty(value = "产品栏目名称")
    private String moduleName;

    @NotNull(message = "分类描述：0，宣传模式，0，学习模式")
    @Range(min = 0, max = 1, message = "分类描述：0，宣传模式，1，学习模式")
    @ApiModelProperty(value = "分类描述：0，宣传模式，1，学习模式")
    private Integer pattern;

    public ProductModuleContentDTO() {
    }

    public Integer getProductModuleId() {
        return productModuleId;
    }

    public void setProductModuleId(Integer productModuleId) {
        this.productModuleId = productModuleId;
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getModuleName() {
        return moduleName;
    }

    public void setModuleName(String moduleName) {
        this.moduleName = moduleName;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public Integer getPattern() {
        return pattern;
    }

    public void setPattern(Integer pattern) {
        this.pattern = pattern;
    }
}
